home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / tool-inc.zip / INVIS.INC < prev    next >
Text File  |  1989-06-02  |  858b  |  29 lines

  1.  
  2. (*
  3.  * Copyright 1987, 1989 Samuel H. Smith;  All rights reserved
  4.  *
  5.  * This is a component of the ProDoor System.
  6.  * Do not distribute modified versions without my permission.
  7.  * Do not remove or alter this notice or any other copyright notice.
  8.  * If you use this in your own program you must distribute source code.
  9.  * Do not use any of this in a commercial product.
  10.  *
  11.  *)
  12.  
  13. (*
  14.  * this function can be called to determine if "SLOW" mode displays are
  15.  * required.  it should be called before each window OPEN/CLOSE action.
  16.  *
  17.  * it is SAFE to call and always returns FALSE when doubledos is not used.
  18.  *
  19.  *)
  20. function invisible: boolean;   {is this the invisible program under doubledos?}
  21. var
  22.    reg:  registers;
  23. begin
  24.    reg.ax := $e400;   {doubledos return program status}
  25.    msdos(reg);
  26.    invisible := (lo(reg.ax) = 2);
  27. end;
  28.  
  29.